<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if ( ! function_exists('date_to_mysql'))
{
	function date_to_mysql($year, $month, $day)
	{
		return date("Y-m-d", mktime(0, 0, 0, $month, $day, $year));
	}
}

if ( ! function_exists('time_to_mysql'))
{
	function time_to_mysql($hours, $minutes)
	{
		return date("H:i:s", mktime($hours, $minutes, 0));
	}
}

if ( ! function_exists('unix_to_time'))
{
	function unix_to_time($unixtime)
	{
		return date("g:i a", $unixtime);
	}
}

if ( ! function_exists('encrypt_password'))
{
	function encrypt_password($password)
	{
		return md5($password);
	}
}

if ( ! function_exists('pre_print_r'))
{
	function pre_print_r($object)
	{
		echo "<pre>";
                print_r($object);
                echo "</pre>";
	}
}

if ( ! function_exists('kitchen_base_url'))
{
	function kitchen_base_url()
	{
		return "http://rmplanner.net/kitchen/scripts/";
	}
}